﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="UserControl_Login" %>
<fieldset>
            <legend><img src="Images/logtext.gif"/></legend>
            <asp:Login ID="userLogin" runat="server" LoginButtonType="Image" RememberMeText="下次自动登录" CreateUserIconUrl="~/Images/reg.gif" Height="150px" LoginButtonImageUrl="~/Images/login.gif" TitleText="" Width="220px" OnAuthenticate="userLogin_Authenticate">
                <TextBoxStyle BackColor="White" BorderColor="ActiveCaption" Width="150px" />
                <TitleTextStyle Font-Strikeout="False" ForeColor="White" />
                <LayoutTemplate>
                    <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
                        <tr>
                            <td style="height: 169px; width: 223px;">
                                <table border="0" cellpadding="0" style="width: 220px; height: 150px">
                                    <tr>
                                        <td align="right" style="width: 39px; height: 40px;">
                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label></td>
                                        <td style="width: 175px; height: 40px;">
                                            <asp:TextBox ID="UserName" runat="server" BackColor="White" BorderColor="ActiveCaption"
                                                Width="150px"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="userLogin">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 39px; height: 40px;">
                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密&nbsp;&nbsp;&nbsp;&nbsp;码:</asp:Label></td>
                                        <td style="width: 175px; height: 40px;">
                                            <asp:TextBox ID="Password" runat="server" BackColor="White" BorderColor="ActiveCaption"
                                                TextMode="Password" Width="150px"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="userLogin">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" colspan="2" style="height: 30px">
                                            <asp:CheckBox ID="RememberMe" runat="server" Text="下次自动登录" /></td>                                                                                                   
                                    </tr>                                            
                                    <tr>
                                        <td align="center" colspan="2" style="height: 22px">
                                            <asp:ImageButton ID="LoginImageButton" runat="server" AlternateText="登录" CommandName="Login"
                                                ImageUrl="~/Images/login.gif" ValidationGroup="userLogin" OnClick="LoginImageButton_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <a href="register.aspx"><img src="Images/reg.gif" alt="注册" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px;
                                                border-right-width: 0px" /></a>
                                        </td>
                                    </tr>                                            
                                </table>
                            </td>
                        </tr>
                        <tr><td align="center" style="color: red; height: 17px; width: 223px;">
                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                        </td></tr>
                    </table>
                </LayoutTemplate>
            </asp:Login>
        </fieldset>